package cn.stacey.elasticsearch.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.stacey.elasticsearch.domain.Product;
import cn.stacey.elasticsearch.mapper.ProductsMapper;

@Service
public class ProductService {
	@Autowired
	Product product;
	@Autowired
	ProductsMapper mapper;
	public Product findById(int id) {
		return mapper.FindById(id);
		
	}
}
